<template>
	<view>
		
		<view class="content">
			<image class="logo" src="/static/winetable_logo.png"></image>
		</view>
		<br>
		<view class="content">
			<text style="font-size: 50rpx;" class="u-demo-block__title">请选择参与人数</text>
		</view>
		<br>
		<u-slider
			v-model="userNum"
			showValue
			min="2"
			max="30"
			activeColor="#deab8a"
			blockColor="#f47920"
			blockSize="25"
		></u-slider>
		<br>
		<view class="content">
			<u-button
				style="width: 30%;"
				text="开始游戏"
				size="normal"
				plain
				shape="circle"
				type="success"
				@click="start"
			></u-button>
		</view>
		
		
		<!-- <u-tabbar
			:value="value1"
			:fixed="false"
			:placeholder="false"
			:safeAreaInsetBottom="false"
		>
			<u-tabbar-item text="金陵十三" icon="home" @click="toHome" ></u-tabbar-item>
			<u-tabbar-item text="大小喝" icon="photo" @click="toPlay" ></u-tabbar-item>
			<u-tabbar-item text="我的" icon="account" @click="toMy" ></u-tabbar-item>
		</u-tabbar> -->
	</view>
	
	
</template>

<script>
	export default {
		data() {
			return {
				title: '选择人数',
				userNum: 6
			}
		},
		onLoad(param) {
			console.log(param)
		},
		methods: {
			start(){
				uni.navigateTo({
				    url: '/pages/play/play'
				});
			},
			toHome(){
				uni.navigateTo({
				    url: '/pages/index/index'
				});
			},
			toPlay(){
				uni.navigateTo({
				    url: '/pages/play/play'
				});
			},
			toMy(){
				uni.navigateTo({
				    url: '/pages/play/play' 
				});
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
